package com.yzc.model.DTO;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class OrderCreateDTO {
    // 主订单基础字段
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotNull(message = "订单类型不能为空")
    private Integer orderType; // 1-酒店 2-机票 3-景点

    @NotNull(message = "总金额不能为空")
    @DecimalMin(value = "0.01", message = "金额必须大于0")
    private BigDecimal totalAmount;

    // 子订单数据（按需扩展）
    private HotelOrderDetail hotelDetail;
    private FlightOrderDetail flightDetail;
    private AttractionOrderDetail attractionDetail;
}